function getTableContext(table) {
        if (db === undefined) {
            throw new Error("The Database has not been initialized, you query will not be executed")
        }
        return db(table)
    }
returns the databse context

@returns {import('knex').knex.QueryBuilder}