Add btree header, fix record size storing