added foreign keys and fixed primary keys, added fields fo aditional data
added foreign keys and fixed primary keys, added fields fo aditional data