GenericDAOImpl added; resultSet,statement and connection closing refactored