Fixed issue with incorrect sql request on start