You would need to write your own PHP program to display the contents of the database. You would have DGS Search pass parameters to it, to get the right entry from your database.
There are many examples of how to do that if you search for MySQL on http://www.php.net.