modified databasehelper.java