Fixed problems with fetching objects with integers as primary keys and
added back-end implementation for assignments