Added sql for moorings and drifters