Fixed error handling
Merge branch 'master' of https://github.com/RCreyghton/webdb.git