converting to global sqlite connection