Add MySQL datasource, refactor related classes to use this datasource
Move the base query into the Mysql record source