added the ability to recognize when to use the environment variables instead of the config file
fixed small syntax error
I think the database is actually working now