bah, I forgot that I need to import all the database settings into each of the functions