only open one connection to the db