added saxdb_read and saxdb_write functions