open_db function

Open an mpathsenser database.