add pragmas for temp_store=mem and synchronous=off

controlled by environmental variables