Open database file