Working for MVP

Added sql
Fixed the channel.js logic for API endpoints
Fixed the rotation script to properly handle emergency slides