Fix the project structure to use packages. Also create a class which establishes database connection. Allow for 3rd party logging.