Reorg action and model
Add testing script
Make dbmgr work
Add success action