fix url and sqlite3 bug