Consolidated sql interactions with encrypting/decrypting
Commented out some logging, was causing significant slowdown while testing