Moved SQL Added More

Moved SQL Queries to an Include this allows the export function to be
more dynamic.