libraries/db: completely split out push & pull job logic/schema

fuck this