add some db xml logic