move env variables before db setup