fixed problem where server cant access db connection when mysql server is started after webserver