[webui] query the database for package