Adding necessary DB API methods for actions

* Added DB API methods for actions
* Unit tests
* Refactored action_manager to use db_api.load_action() method
* Minor refactoring

Change-Id: I22276dab7cb90bf20537d3a7c0d450003c3b9eae