updates the database schema