make database check just after initializing the configuration object