cleaned up DB class. See login.jsp for example