add data convert
handle auth error
handle results with NULL values
fixbug: attempt to receive data on a closed socket
thanks torhve for the patch.
Merge branch 'master' of https://github.com/azurewang/lua-resty-postgres