Accidentally put the variable going to the wrong route and wrong DB table. Moved it to it's proper place.