fixed bug where migrate db tried to create a new instance of an object which MIGHT have a PRIVATE CONSTRUCTOR