Added a base database structure

The DB_Mysql will automatically create the database, butit is not
really compatible with php-mmcfe-ng. Even with extend=off it will
errors with vardiff. I will eventually pull the database code out
of the files again (I wrote it this morning but lost the VM)
Added difficulty into pool_worker
Change the share difficulty back to the worker difficulty