Fix queryMethod error
Throw errors instead of strings for DB errors