Fix database scheme