change sqlite to be instantiated on stack instead of being shared