Added the filter by action in schedules api

includes unit and functional tests
(related changes in simple and sqlalchemy db)