Add access to mysql database to fetch campaign data.
Separate functions to file tree