checkpoint , db fixes