Send data to postgresql