I'm sure it's doable, but it's beyond the scope and purpose of an export template. You would have to establish a connection to the database, and then run queries to to get data. If a webpage could do that, there would be no need for creating one from an export. Or am I not understanding what you're trying to achieve?