SQLite support, and mysql overhaul.

Merged functions, Converted UNLOCKS to JSON. Added SQLite Support.
Removed unneeded comments.