added unified DBHelper class