- Ported SetPreviewQuery to PostgreSQL in all related forms;