SQL: Database schema correction.