add database support to the TVDI