Better check for db status