fix the db from the auto generated code