Save data when app runs to background. log when adding new item fail