Adds variables from config for db and collection