updated getReadingList function to comply with database schema