Fixed database for updates to handle new tables