Add category filter, and this is just a rough implemention, can only filter expense transaction, more work to be done. Also fixed the cursor leak:)