Added support for sqlite. Mysql seems broken from here :(