All the calls to add to the DB are working correctly. Changed the window.location.href to work off of my scope variable. Testing.