Working towards getting backend working, giant monolithic commit that is barely kinda not broken