more CRUD.. made helper method to get attributes from objects for doing inserting