Further implementation of repo methods. Using env var for fallback db resolution