This was the product of a ton of hacking and sleep deprivation. The code quality is beyond awful. The only real purpose of this is to look at it and joke about how janky it is.
This is the backend for the Beacon app. It stores everything including images in a SQL Database specified by the configuration file.