Fix db_patch