Tests and fixes adding an existing file (ie. hash)
Adds some test requests
Adds some 'no cover' pragmas to database.py
Tests and fixes getting metadata from query result
Tests opening an invalid filestore
Tests and fixes opening a stored file