Added an enum for the channel modes
Pulled last hard coded sql query out of the normal code and added it as a function in the database struct