main: store the db as a global variable