Database inserting and loading

All actions have now implementation allowing to insert and load them
from the database (testing needed)