add feature: query db