db: add database check and boileplate
This includes:
- an api endpoint to test the database and check the status
- alembic migration for the database
- split between models (db data) and schemas (api data)
Bug: T370317 Signed-off-by: David Caro dcaro@wikimedia.org