make sure DB is ready