open and close database in databasehelper.java