Misc Sandbox/Database updates

!WIP! That means DON'T MERGE YET.
Here so you can post suggestions.
What I changed so far:

* Added a toolbox selection menu for the "Create Toolbox" in sandbox menu.
* Allowed you to move ranks to SQL
* Added support for database prefix

None of this is in finished state. What I plan to add is:
* Better SQL integration
* Webadmin(possibly)
* Much better sandbox spawn menu
* Move the legacy rank checking to a new proc.
Feel free to post comments and criticism