DB connection changes but still not working