add an argument to skip makeing a database connection