worked on the list. added method to better handle the db