edited queryForKeyword method in DatabaseController