Select dives from db in correct order.