Added the scripts that were made stephanie and created a trigger function to automatically delete old sessions. Modified the scripts made by Stephanie