refactoring db rspec, to not test for objects, but instead object attributes
add get all invites method, and refactored some more db test
usecase for invite