Transferring over to SQLite. Finished database.js, userinfo.js and
settings.js in theory. Seems to break every now and then.

Signed-off-by: Charlie <chaz2505@hotmail.com>