use envvars instead of config vars

refs #66
get a db session so you can do things to the db

refs #66
removed unused config vars

refs #66