Created objects and query methods

- Updated attributes in database
- Added query methods and namescopes in models