Add sqlite support (you can still use mysql as well)

Don't merge yet, but you can watch the progress here :)