Add support for database flavors to swh db init
This adds a "flavor initialization step" to the initialization of the database,
after the execution of the sql file named *-flavor.sql.
This adds a few sanity checks to warn if one of the underlying assumptions for
this feature breaks.