Improved SchemaDaoFactory so that it dynamically determines the implementation to use.