Moved method to connect to database from DBConnector.java to DAOUtils.java, added methods to close JDBC related objects.