First draft for a function to check the DB status