add next prev functionality - bug when out of bounds of db