DatabaseCommands: add "window" parameter to "search"/"find"