Changed sql variable names: conn to connect and curs to cursor.