speedup the queries
a bit of inline pragmas