add a function ctdb_writerecord() to write a record to the database.