Updates the database schema and routes.