codeintel: Generalize postgres bulk upload
Created by: efritz
We do bulk inserts into postgres (efficiently) in two ways: once in the commit updater, and once in the postgres layer of the postgres bundle store. This process should be moved to dbutil to reduce repeated code.