Fixed it outputing all tags on objs not in db
Made table exists check only get one row incase of slowdown when dealing
with large tables
Changed how table existance was checked
Added indices to tables to speed things up
Fixed get --obj-tags tests
Corrected some more tests