open a db