Fixed error whit filter project and this metric.
In SCR for sql where generic, it is better to pass identities_db so it works with projects.
Fixed for identities generation
Include studies metrics in all data sources.