fixing enviroment variables for database connect