Update interfaces.py

Use config file for MySQL connections
Add check for miner login