switch to PostgreSQL completely
fix bug when list of GUIDs is empty