added autodiscovering of miners and database functionalities
lots of bug fixes, now loads miners from database