MDT: use with a database