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