add query method in DBhelper