Angular working, not saving to database