In db_value_to_text() make sure the char** is empty before setting it, return error if its not.