removing unecessary variable
setting default database hostname to localhost if no environment variable is set