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