changed logdb example app for using query service (not query-input directive)