Convert to non static class

Make the cookie class methods non static
Remove extra database call

Remove un-required query to the database
Improve document formatting

Minor amend to layout because it bugged me