Fix database schema