https://mschoeffler.com/2015/01/01/retrieving-the-previous-and-the-next-record-of-a-selected-record-sql/
Retrieving the previous and the next record of a selected record (SQL)