Store data in PostgreSQL