patch_db.coffee