fixed HTTP POST to db