Update to new database schema