Create db_writeidx.c