Create db_writedat.c