I got simular error and I did this; I changed database file type
".sqlite" to ".db"
and my problem is solved