Refactor backend to use database

WIP conversion to db-backed app

WIP commit of conversion scripts

Remove conversion scripts, replace with individual jsons

Convert database to Postgresql

Restore function alias functionality

Prevent game function exhaustion by looping over functions

When a game room reaches the end of a function list, it starts at the beginning again.

Move underscore import data folder structure