fix the database problem