Added triggers and tests
Helper file for database setup