Converted database to a class
Added a missing semicolon
Fixed a problem where administrators got denied access when editing or deleting events or vehicles