Data base save fails after performing initial checks