seperated out entites from data access layer