Improving code coverage queries to the database.
The enumeration of the SQL query is now written in manual classes to have more control over the code and avoid hell on code coverage.