Detection for Symfony2 database configuration