Moved from sqlite to mySQL. Closes #6 but still unstable.