Reduced amount of SQL Statements for entity Config