Updated database tables. I hope the foreignkeys and the enums are correct.