Fixed missing joincolumn in petrecord
changes to db.changlog.xml
fixed missnamed primaryKeyname I forgot.
Fixed database and reorganization of layout of db.changlog.xml