Fix database error undefined on Chrome and count returns IDBRequest instead of result

Ahhh. So this was actually returning the DBReq instead of actually resolving out to the final count?