database actions should now be transaction safe