Switched to PostgreSQL.

Was using MySQL.  Also setup some new database url things.  And better
sanitization.
Fixed database bug and made SQL connection global.
Adjusted the displayed API version.
It said it was "v3," but it's actually "v2."