Converted from H2 to PostgreSQL