From a quick look at the Sagefy code, it seems you've written your own web framework, including your own database layer. Was there a particular reason you didn't use a framework like Django?
I've started looking into migrating the services from Python to Golang to make deployments easier. We'll see how it goes :)