Fixed trigger and trigger function to update beers table and audit table.