Saving cur in db