Jer's server id request

I have updated what I was able to find for database interactions, as well as the front-end interface.

The main issue I had was pulling and "int" out of the config and passing the int to the format query.
I am also a little interested if the table create query's will work properly, the duel primary key through a wrench in the current system.

I also don't have a server of the build, so I have not had a change to test the code.
Technical detail: the purpose of the locking/unlock is to do the non-threaded queries here all at once, so this should use ``SQL_FastQuery(db, g_sqlBuffer);``

(this reminds me I should really remove that stupid global sql buffer thing too)