Add filtering to s:get-input. Switch to dbi.