fixed nullpointer db connection bug