use getQuery for count
empty default database