use envs for db connection