MAFA-90: added functionality to add the custom filter to a table in the database

Signed-off-by: unknown <cnwnh1@cnwcb5a.cnw.co.nz>