Primary Key Fix plus back-end implementation for assignments and assignment submissions

Fixed problem with primary keys that are integers and added back-end implementation for assignments