Implemented db connection checking before start application