[DB] added executeQuery(..) method to remove duplicated code