DB healthcheck

Simple healthcheck for the database

Tested with SQLite and PostgreSQL