Allow creating test Code Insights dbs from existing db test logic
Created by: chwarwick
Since the Code Insights db is now a regular Postgres instance, allow the existing test db code to create an empty insights db when requested. Convert to lazy init of db templates because the insights db won't be need all the time.
Test plan
Existing tests pass