sql = "select exists(SELECT * from USERS where PASSWORD = ? AND USERNAME = ?)" args = (var1,var2) cursor = database_connection.execute(sql, args)