added a bunch of routines to add blobs to db (untested)