Some refactoring - Added base controller to save db once actions executed