make code compliant with Java standards for interfacing with database