PostgreSQL Database structure for schema datasets