Fix migrations to work with sqlite3. Closes #30