added pragmas to make sqlite interaction faster