Added null constraints and foreing key to servers
Updatet test and added foreign keys
Merge branch 'add_db_constraints' into develop