Uses config vars for db