Improved AES code sample, added sql samples