fixes in sqlite