updated some methods for database access
Merge branch 'master' of https://github.com/camhart/webapp