Fix issues around SQLite

* Fix the issue that SQLiteDatabase.openDatabase does not create new SQLite file. Looks like In-memory database was always used even if the database file name is specified.
* Fix the issue that SQLiteDatabase.getDatabase does not respect Context.getDatabasePath().
* Fix the issue that database version is not set correctly.
* Modify/Add test cases accordingly.