fix errors and make it possible to use sqlite