Revert "Revert "Revert "Revert "I did the database tables, triggers...etc.""""

This reverts commit f3f7627aab4d4207a5fbb0e08196f6b7e7c3d7b7.
Revert "Revert "Revert "Revert "Revert "I did the database tables, triggers...etc."""""

This reverts commit e30c59a685d532aedc587f008a6592548446f8ac.