all important actions are now logged to the database, closing #29