thread safe on read
add pragmas and row-factory