adding limit to filter creator
adding database stuff for limit