Added encyrption option to DB insert