readd possibility to pass parameters to the factory of a dao class