Added code to open sqlite3 database.