add putRecord and putRecords to database and add auto compaction on open