Set up config files and mysql