schema updated with triggers and stored procedure