finish saving to database with no duplicates and the pulling data from database call