Added functions to monitor queries being executed on the server and to report activity of tables.
Refactored encrypt and decrypt functions to not require output parameter but instead return the result.