SQLite support, and mysql overhaul.

Merged functions, Converted UNLOCKS to JSON. Added SQLite Support.
Removed unneeded comments.
Update mysql.lua
Merge pull request #12 from scottd564/master

MySQL re-write. SQLite support + fallback.