Garbage collect sessions

Remove rows from the database when they are no longer needed