Fix connections to sqlite