more code to use XMLDB to improve db portability