Refactor database schema.