postgres fix on find top photo