now store to postgreSQL database