Moved from SQLite to MySQL

We've used oursql as the connector.

Follow the updated guide on the wiki to setup the database.