migrate from pdo to dbal. migrate tool rewrited to dbal. fix smarty configuration.