correcting table name
fixed typo
changed write to setheader
added proper response for /db
strififying query result
trying to insert data
fixed typo
added cient instance based postgres querying