Fix count returns IDBRequest instead of result