stmtHonkers=preparetodie(db,"select honkerid, userid, name, xid, flavor, combos from honkers where userid = ? and (flavor = 'presub' or flavor = 'sub' or flavor = 'peep' or flavor = 'unsub') order by name")
stmtHonkers=preparetodie(db,"select honkerid, userid, name, xid, flavor, combos, meta from honkers where userid = ? and (flavor = 'presub' or flavor = 'sub' or flavor = 'peep' or flavor = 'unsub') order by name")
stmtHonksByHonker=preparetodie(db,selecthonks+"join honkers on (honkers.xid = honks.honker or honkers.xid = honks.oonker) where honks.honkid > ? and honks.userid = ? and honkers.name = ?"+butnotthose+limit)
stmtHonksByXonker=preparetodie(db,selecthonks+" where honks.honkid > ? and honks.userid = ? and (honker = ? or oonker = ?)"+butnotthose+limit)
stmtHonksByCombo=preparetodie(db,selecthonks+" where honks.honkid > ? and honks.userid = ? and honks.honker in (select xid from honkers where honkers.userid = ? and honkers.combos like ?) "+butnotthose+" union "+selecthonks+"join onts on honks.honkid = onts.honkid where honks.honkid > ? and honks.userid = ? and onts.ontology in (select xid from honkers where combos like ?)"+butnotthose+limit)
stmtHonksBySearch=preparetodie(db,selecthonks+"where honks.honkid > ? and honks.userid = ? and (? = 0 or xid like ?) and (? = 0 or honks.honker = ? or honks.oonker = ?) and noise like ?"+butnotthose+limit)
stmtHonksBySearch=preparetodie(db,selecthonks+"where honks.honkid > ? and honks.userid = ? and (? = 0 or xid like ?) and (? = 0 or honks.honker = ? or honks.oonker = ?) and noise like ? and (? = 0 or noise not like ?)"+butnotthose+limit)
stmtHonksByConvoy=preparetodie(db,selecthonks+"where honks.honkid > ? and (honks.userid = ? or (? = -1 and whofore = 2)) and convoy = ?"+limit)
stmtHonksByOntology=preparetodie(db,selecthonks+"join onts on honks.honkid = onts.honkid where honks.honkid > ? and onts.ontology = ? and (honks.userid = ? or (? = -1 and honks.whofore = 2))"+limit)
stmtSaveMeta=preparetodie(db,"insert into honkmeta (honkid, genus, json) values (?, ?, ?)")
stmtDeleteMeta=preparetodie(db,"delete from honkmeta where honkid = ? and genus <> ?")
stmtDeleteAllMeta=preparetodie(db,"delete from honkmeta where honkid = ?")
stmtDeleteSomeMeta=preparetodie(db,"delete from honkmeta where honkid = ? and genus not in ('oldrev')")
stmtDeleteXonker=preparetodie(db,"delete from xonkers where name = ? and flavor = ? and dt < ?")
stmtRecentHonkers=preparetodie(db,"select distinct(honker) from honks where userid = ? and honker not in (select xid from honkers where userid = ? and flavor = 'sub') order by honkid desc limit 100")
stmtUpdateFlags=preparetodie(db,"update honks set flags = flags | ? where honkid = ?")
stmtClearFlags=preparetodie(db,"update honks set flags = flags & ~ ? where honkid = ?")