Made db connection a member of class.