error checking db interactions in server, minor style fixes
Merge pull request #1 from paulb896/jquery-fun

error checking db interactions in server, minor style fixes