fixed local pg server and fixed bug w/ submitting to db
Merge pull request #4 from qiheme/master

fixed local pg server and fixed bug w/ submitting to db