some fixes to the db file so it runs - it does not work completely as intended though