Added validator for database and fixed injection for properties processor