Fix DbQueue implementation

Unit tests are now running against a real MySQL Database, memcacheq and activemq.
Will do the same with JobQueue to have at least the functionality working at all.