Add functionality of saving to the database and showing a list