Get away from deprecated mysql calls and use mysqli calls instead, or
some third-party library
I remember thinking that I wanted some kind of centralized API, and I
wanted to do some stuff with client-side JavaScript and inline requests,
but now I don't remember why.