Solve problems with PostgreSQL