10.12.2013 17.33 fixed table bugs, added foreign key,removed joinTable annotations.