database schema fix