Fixed db connection problem.