Add sqlcounter queries for sqlite