refactoring to represent employees and adding database access