replaced second db with env variables