libraries/db: split out push & pull job logic/schema. fk it