created library object that reads from the cursor and creates a serializable object