fixes in the db-relation