Add management of multiple databases

Hello,

I use multiple databases in my project, so i propose this commit.
The entity manager is detected with the class name of the entity.
I've added an option to the command 'database-name' to purge the database specified.
I've updated the tests accordingly.

Kind regards