Refactored database schema.