inserted POST data into db