Fixed issue with "scope.data" losing reference in generated apps controller
Removed console.log added for debugging
Added database row deletion