fix sql connection to sqlite