export const applyFilter = (qb: SQLiteSelect, paging: Paging, filter: string | undefined) => { .. } limit and offset and also where using qb.where(..).qb received already contains a where clause.qb.where(..) overwrites it unfortunately.qb already has a where?