Adding the ability to base64 encode data so that it works with postgres ...

The reason for this commit is to solve issue #4, please let me know if something looks wrong.  I have tested it on my local app and it seems to be working fine.