Stores session in a database using Active Record